<?php
	class QueryException extends Exception {
		public function __construct($message, $code = null) {
			parent::__construct($message, $code);
		}
	}
	
	class ForgeryException extends Exception {
		public function __construct($message, $code = null) {
			parent::__construct($message, $code);
		}
	}
	
	class MailNotSentException extends Exception {
		public function __construct($message, $code = null) {
			parent::__construct($message, $code);
		}
	}
	
	/*
	 * List of Exceptions
	 * 1- Query syntax exception. The given query is not well formed.
	 * 2- The user id stored in the session and the id passed as parameter to the method do not match each to another. This could be a possible malicious injection so we abort the execution of the method by throwing this exception.
	 * 3- An attempt to send an email has failed. The email has not been sent.
	 */
?>